
<%@ include file="/WEB-INF/jsp/include/page_header.jspf" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>       

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>:: THv3 ::</title>


        <script type='text/javascript'>

            $(document).ready(function() {
	
                              
            });
        </script>
    </head>
    <body>
        <fmt:setLocale value="ms_MY"/>
        <s:useActionBean beanclass="ipfms.stripes.util.ListUtil" var="list"/>
        <s:form beanclass="ipfms.stripes.InboxAction">  
            <br/>

            <fieldset class="aras1" style="height: 450px">
                <legend>Inbox</legend>
                <display:table class="tablecloth" style="width:100%; border:0px;  bordercolor:#BBB;" 
                               name="${actionBean.inboxList}" pagesize="10" id="line">
                    <display:column title="No" sortable="true" style="vertical-align:baseline">${line_rowNum}</display:column>
                    <display:column title="Property" style="vertical-align:baseline">
                        <a href="${pageContext.request.contextPath}/property?editDetail&idBuilding=${line.building.idBuilding}&taskId=${line.workflowId}">
                                                            ${line.building.buildingName}</a>
                    </display:column>
                    <display:column title="Property Type" property="building.buildingType.desc" style="vertical-align:baseline"/>
                    <display:column title="Rental Price">
                        <c:if test="${empty item.building.amtRent}">
                            -
                        </c:if>
                        <c:if test="${!empty item.building.amtRent}">
                            <fmt:formatNumber value="${item.building.amtRent}" type="currency"/> per sq. ft
                        </c:if>
                    </display:column>
                            <display:column title="Sell Price">
                        <c:if test="${empty item.building.amtSell}">
                            -
                        </c:if>
                        <c:if test="${!empty item.building.amtSell}">
                            <fmt:formatNumber value="${item.building.amtSell}" type="currency"/>
                        </c:if>
                    </display:column>
                </display:table>
            </fieldset>

           <%-- <table width="600" border="0" cellpadding="0" cellspacing="0" class="normaltext">
                <tr>
                    <td><img src="images/1_1_empty.gif" width="50" height="8"></td>
                </tr>
                <tr>
                    <td colspan="3"><img src="${pageContext.request.contextPath}/images/1_1_empty.gif" width="50" height="8"></td>
                </tr>
                <tr>                   
                    <td width="226" colspan="3" class="superyellow"><u>Inbox</u></td>                            
                </tr>
                <tr>
                    <td colspan="3"><img src="${pageContext.request.contextPath}/images/1_1_empty.gif" width="50" height="8"></td>
                </tr>
                <tr>
                    <td bgcolor="">
                        <table width="600" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td colspan="3"><img src="images/1_1_empty.gif" width="50" height="8"></td>
                            </tr>                            
                            <tr>
                                <td colspan="3"><img src="images/1_1_empty.gif" width="50" height="8"></td>
                            </tr>                        

                            <tr>
                                <td><table width="600" border="0" cellpadding="2" cellspacing="1" bgcolor="#737991">
                                        <tr bgcolor="#8dc73f " class="normal_bold">                               
                                            <td width="30" rowspan="2"><div align="center">No</div></td>
                                            <td width="124" rowspan="2"><div align="center">Property</div></td>
                                            <td width="100" rowspan="2"><div align="center">Property Type</div></td>  
                                            <td width="100" colspan="2"><div align="center">Price</div></td>  
                                        </tr>
                                        <tr bgcolor="#8dc73f " class="normal_bold">                                             
                                            <td width="80" ><div align="center">Rental</div></td>  
                                            <td width="80"><div align="center">Sell</div></td>  
                                        </tr>
                                        <c:forEach items="${actionBean.inboxList}" var="item" varStatus="line">
                                            <tr bgcolor="#FFFFFF">
                                                <td><div align="center">${line.count}</div></td>
                                                <td><div align="center">
                                                        <a href="${pageContext.request.contextPath}/property?editDetail&idBuilding=${item.building.idBuilding}">
                                                            ${item.building.buildingName}</a>
                                                    </div>
                                                </td>
                                                <td><div align="center">${item.building.buildingType.desc}</div></td> 
                                                <td><div align="center">
                                                        <c:if test="${empty item.building.amtRent}">
                                                            -
                                                        </c:if>
                                                        <c:if test="${!empty item.building.amtRent}">
                                                            <fmt:formatNumber value="${item.building.amtRent}" type="currency"/> per sq. ft
                                                        </c:if>
                                                    </div></td> 
                                                <td><div align="center">
                                                        <c:if test="${empty item.building.amtSell}">
                                                            -
                                                        </c:if>
                                                        <c:if test="${!empty item.building.amtSell}">
                                                            <fmt:formatNumber value="${item.building.amtSell}" type="currency"/>
                                                        </c:if>                                                        
                                                    </div></td> 
                                            </tr>                                            
                                        </c:forEach>                                        
                                    </table></td>
                            </tr>

                            <tr>
                                <td colspan="3"><img src="images/1_1_empty.gif" width="50" height="8"></td>
                            </tr>
                        </table></td>
                </tr>
                <tr>
                    <td><img src="images/1_1_empty.gif" width="50" height="8"></td>
                </tr>            
            </table> --%>
        </s:form>
    </body>
</html>